﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.IBLL
{
    public interface ILikeManager
    {
        /// <summary>
        /// 是否已经点赞
        /// </summary>
        /// <param name="vodeoId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool IsLike(string videoId, int userId);
        /// <summary>
        /// 添加点赞
        /// </summary>
        /// <param name="videoId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool AddLike(string videoId, int userId);
        /// <summary>
        /// 取消点赞
        /// </summary>
        /// <param name="videoId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool RemoveLike(string videoId, int userId);
        /// <summary>
        /// 点赞总数
        /// </summary>
        /// <param name="videoId"></param>
        /// <returns></returns>
        long Count(string videoId);

    }
}
